package com.java.thread.join;

public class TestJoin {

	public static void main(String[] args) {
		JoinThread jt1 = new JoinThread("T1");
		try {
			
			jt1.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
		JoinThread jt2 = new JoinThread("T2");
		jt2.start();
		for (int x = 1; x < 100; x++) {
			System.out.println(Thread.currentThread().getName() + "..." + x);
		}
	}
}
